package com.ruoyi.nas.files.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * NAS文件对象 nas_files
 * 
 * @author ruoyi
 * @date 2025-09-08
 */
public class NasFiles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件名 */
    @Excel(name = "文件名")
    private String filename;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long filesize;

    /** 分配空间 */
    @Excel(name = "分配空间")
    private Long filesizereal;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lasttime;

    /** 文件属性 */
    @Excel(name = "文件属性")
    private Long fileprop;

    /** 文件数量 */
    @Excel(name = "文件数量")
    private Long filecnt;

    /** 目录数量 */
    @Excel(name = "目录数量")
    private Long dircnt;

    public void setFilename(String filename) 
    {
        this.filename = filename;
    }

    public String getFilename() 
    {
        return filename;
    }
    public void setFilesize(Long filesize) 
    {
        this.filesize = filesize;
    }

    public Long getFilesize() 
    {
        return filesize;
    }
    public void setFilesizereal(Long filesizereal) 
    {
        this.filesizereal = filesizereal;
    }

    public Long getFilesizereal() 
    {
        return filesizereal;
    }
    public void setLasttime(Date lasttime) 
    {
        this.lasttime = lasttime;
    }

    public Date getLasttime() 
    {
        return lasttime;
    }
    public void setFileprop(Long fileprop) 
    {
        this.fileprop = fileprop;
    }

    public Long getFileprop() 
    {
        return fileprop;
    }
    public void setFilecnt(Long filecnt) 
    {
        this.filecnt = filecnt;
    }

    public Long getFilecnt() 
    {
        return filecnt;
    }
    public void setDircnt(Long dircnt) 
    {
        this.dircnt = dircnt;
    }

    public Long getDircnt() 
    {
        return dircnt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("filename", getFilename())
            .append("filesize", getFilesize())
            .append("filesizereal", getFilesizereal())
            .append("lasttime", getLasttime())
            .append("fileprop", getFileprop())
            .append("filecnt", getFilecnt())
            .append("dircnt", getDircnt())
            .toString();
    }
}
